#include "xMeshManager.h"
#include "xEngineConfig.h"
#include "XEngine.h"



namespace XE
{


	const xString 	xMeshManager::ReourceType="Mesh";
	xMeshManager* Singleton<xMeshManager>::ms_Singleton=NULL;


	xMeshManager::xMeshManager()
	{

		const xEngineConfig& config = XEngine::getSingleton().GetConfig();
		const  xStringVector* Pathlist = config.GetResourceList(xMeshManager::ReourceType);
		if(Pathlist!=NULL)
		{
			xStringVector::const_iterator it = Pathlist->begin();
			for(;it!=Pathlist->end();++it)
			{
				AddPath(*it);
			}
		}



	}


	xMeshManager::~xMeshManager()
	{

	}



	xMeshPtr xMeshManager::CreateMeshByxMesh(LPD3DXMESH pMesh)
	{
		return xMeshPtr();
	}





}